package com.mayikt.weixin.service;

import com.alibaba.fastjson.JSONObject;
import com.mayikt.base.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname VerificaCodeService
 * @Description SpringBoot SpringCloud 构建微服务电商平台。
 * @Created by CHEN JIN LONG
 * @Date 2019/1/18 22:34
 * @Version 1.0
 */
@Api(tags = "微信注册码验证接口")
public interface VerificationCodeService {
    @ApiOperation(value = "根据手机号验证微信验证码是否正确")
    @ApiImplicitParams({

            @ApiImplicitParam(paramType = "query", name = "phone", dataType = "String", required = true, value = "用户接受验证码手机号"),
            @ApiImplicitParam(paramType = "query", name = "weixinCode", dataType = "String", required = true, value = "微信验证码")
    })
    @PostMapping("/verificationCode")
    public BaseResponse<JSONObject> verificationCode(@RequestParam("phone") String phone, @RequestParam("weixinCode") String weixinCode);

}
